package cn.stylefeng.guns.modular.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 生产计划
 * </p>
 *
 * @author wusonghe
 * @since 2019-08-31
 */
@TableName("info_plan")
@Data
public class Plan implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 质检ID
     */
    @TableId(value = "plan_id", type = IdType.INPUT)
    private Long planId;

    /**
     * 类型
     */
    @TableField("type")
    private Integer type;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 详情
     */
    @TableField("remark")
    private String remark;
    /**
     * 状态
     */
    @TableField("status")
    private Integer status;


    @TableField(value = "status_desc")
    private String statusDesc;
    /**
     * 制定人
     */
    @TableField("worker")
    private String worker;

    /**
     * 审核人
     */
    @TableField("review_worker")
    private String reviewWorker;
    /**
     * 客户
     */
    @TableField("client_id")
    private Long clientId;



    @TableField(value = "farm_name")
    private String farmName;

    @TableField(value = "pood_name")
    private String poodName;


    @TableField("farm_id")
    private Integer farmId;
    /**
     * 饲养池ID
     */
    @TableField("pood_id")
    private Integer poodId;
    /**
     *
     */
    @TableField("pood_detail")
    private String poodDetail;
    /**
     *
     */
    @TableField("pood_ph")
    private Double poodPH;
    /**
     *
     */
    @TableField("pood_salt")
    private Double poodSalt;
    /**
     *
     */
    @TableField("pood_temperature")
    private Double poodTemperature;
    /**
     *
     */
    @TableField("pood_ammonia")
    private Double poodAmmonia;
    /**
     *
     */
    @TableField("pood_nitrate")
    private Double poodNitrate;

    /**
     * 物料数组[id,数量]
     */
    @TableField("materiel_list")
    private String materielList;

    /**
     * 产品数组[id,数量,重量]
     */
    @TableField("product_list")
    private String productList;
    /**
     * 产品数组[id,数量,重量]
     */
    @TableField("plan_product_list")
    private String planProductList;

    @TableField(value = "grow_number")
    private Integer growNumber = 0;

    @TableField(value = "release_start_time")
    private String releaseStartTime;

    @TableField(value = "release_end_time")
    private String releaseEndTime;

    @TableField(value = "harvest_time")
    private String harvestTime;

    /**
     * 质检时间
     */
    @TableField("inspection_time")
    private String inspectionTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


    //计划
    @TableField(value = "selectDayMaterials")
    private String selectDayMaterials;

    @TableField(value = "selectWeekMaterials")
    private String selectWeekMaterials;

    @TableField(value = "selectMouthMaterials")
    private String selectMouthMaterials;

    @TableField(value = "selectDayOthers")
    private String selectDayOthers;

    @TableField(value = "selectWeekOthers")
    private String selectWeekOthers;

    @TableField(value = "selectMouthOthers")
    private String selectMouthOthers;


}
